Skip to content

linter catches .only( and linter happens after unit tests#80

Open
OzoneTank wants to merge 1 commit intomasterfrom
eslint-mocha-only
Open

linter catches .only( and linter happens after unit tests#80
OzoneTank wants to merge 1 commit intomasterfrom
eslint-mocha-only

Conversation

@OzoneTank
Copy link

Why?

  • Linter does not catch if someone leaves something like .only( in their tests.

What Changed?

  • Added mocha linter for .only( like describe.only context.only and it.only to only run those tests so that it catches when we leave them in.
  • Changed linter to posttest so that you can actually run tests before the linter complains.

@ghost ghost assigned OzoneTank Mar 6, 2018
@ghost ghost added the in progress label Mar 6, 2018
{
"extends": "smashing-boxes/react"
"extends": "smashing-boxes/react",
"plugins": [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants